package com.bite.forum.service;

import com.bite.forum.model.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {

    @Transactional
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectAllBoardId(Long boardId);

    Article selectDetailArticle(Long id);

    void modify(Long id , String title , String content);

    Article selectById(Long id);

    public void thumbsUpById(Long id);

    void deleteById(Long id);

    void addArticleReplyCountById(Long id);

    List<Article> selectByUserId(@Param("userId") Long userId);
}
